import { useRoutes } from 'react-router-dom'
import Home from '../views/home'
import Test from '../views/test'
import TestB from '../views/testB'

const routes = [
	{
		path: '/home',
		name: '首页',
		element: <Home />,
		exact: true,
	},
	{
		path: '/test',
		name: 'test',
		element: <Test />,
	},
	{
		path: '/testB',
		name: 'testB',
		element: <TestB />,
	},
	{
		path: '*',
		element: <Home />,
	},
]
function ConfigRoutes() {
	return useRoutes(routes)
}
export default ConfigRoutes
